package com.homework.oop;

public class NetUser {
  private String username;
  private String pwd;
  private String email;

  public NetUser(String username, String pwd, String email) {
    this.username = username;
    this.pwd = pwd;
    this.email = email;
  }

  public NetUser(String username, String pwd) {
    this.username = username;
    this.pwd = pwd;
    this.email = this.username + "@gameschool.com";
  }

  @Override
  public String toString() {
    return "NetUser{" +
            "username='" + username + '\'' +
            ", pwd='" + pwd + '\'' +
            ", email='" + email + '\'' +
            '}';
  }

  public static void main(String[] args) {
    //
    NetUser user1 = new NetUser("zhangsan", "zs123456", "zs1111@qq.com");
    System.out.println(user1);
    NetUser user2 = new NetUser("lisi", "lisi111222");
    System.out.println(user2);
  }
}
